package com.sxj.corejava.code04_单例模式;

/**
 * @author 石小俊
 * @date 2023年12月2023/12/5日 19:26
 */
public class Test01 {

    public static void main(String[] args) {
        SomeBean someBean = SomeBean.getInstance();
        SomeBean someBean2 = SomeBean.getInstance();
        System.out.println(someBean == someBean2);
        System.out.println("*******************************");
        OtherBean otherBean = OtherBean.getInstance();
        System.out.println(otherBean);
        OtherBean otherBean2 = OtherBean.getInstance();
        System.out.println(otherBean == otherBean2);
    }

}
